package com.stiove.whwh.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stiove.whwh.dao.pojo.User;
import com.stiove.whwh.dao.pojo.UserWxCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserWxCodeMapper extends BaseMapper<UserWxCode> {
    @Select("select id,user_id,wx_code from user_wx_code where user_id = #{id} limit 1  ")
    public UserWxCode getWxCodeById(long id);

    @Select("select id,user_id,wx_code from user_wx_code where wx_code = #{code} limit 1  ")
    public UserWxCode getWxCodeByCode(String code);
}
